#ifndef BTFORM_H
#define BTFORM_H

#include <QWidget>
#include <qpropertyanimation.h>

namespace Ui {
class BtForm;
}

class BtForm : public QWidget
{
    Q_OBJECT

public:
    explicit BtForm(QWidget *parent = nullptr);
    ~BtForm();
    void setIconAndText(const QString& icon, const QString& text, int pageId);
    int getPageId() const;
    void clearColor();
    void showLineBox();
signals:
    void btClick(int pageId);

protected:
    virtual void mousePressEvent(QMouseEvent *event) override;
private:
    Ui::BtForm *ui;
    int pageId;

    QPropertyAnimation* line1Animal;
    QPropertyAnimation* line2Animal;
    QPropertyAnimation* line3Animal;
    QPropertyAnimation* line4Animal;
};

#endif // BTFORM_H
